#include <iostream>
#include <cmath>

using namespace std;

int a[100000];
int main(){
	int n,m;
	int j = 0;
	while (cin >> n){
		double c=0;
		for(int i = 0 ; i < n ; i++){
			int b;
			cin >> b;
			a[i] = b;
			c += b; 
		}
		
		c /= n * 1.0;
		for(int i = 0 ; i < n ; i++){
			if(a[i] < c){
				cout << a[i] << ' ';
			}
		}
		cout << endl;
		
	}
} 
